const { response } = require('express')
const express = require('express')

const app = express()

app.use(express.static('public'))

app.get('/response', (req, res) => {
    let data = '响应数据'


    res.redirect('http://www.baidu.com')
})

app.listen('3000', () => {
    console.log('服务已启动：http://localhost:3000')
})